package data.vectors;

/**
 * This class describes an iterator of the couple (feature,value) of a vector
 * example:
 * <code>
 * DoubleVectorIterator it;
 * while(it.hasNext())
 * {
 * 		it.next();
 * 		Log.sendMessage("info", this.getClass().getName(),it.getCurrentFeatures+"="+it.getCurrentValue());
 * }</code>
 * 
 * @author denoyer
 *
 */

public interface DoubleVectorIterator {
	/**
	 * has next element ? 
	 */
	public boolean hasNext();
	
	/**
	 * get the current feature value	 
	 */
	public int getCurrentFeature();
	
	/**
	 * get the current value
	 */
	public double getCurrentValue();
	
	/**
	 * Go to the next element (before using getCurrentFeature and getCurrentValue)
	 */
	public void next();
}
